package model.dynamic;

import model.AbstractDepartment;

//C级单位
public class DyCDepartment extends TransDyDepartment
{
	 String aName;

	 String bName;

	 String cName;

	public DyCDepartment(DyDDepartment dyDDepartment)
	{
		this.aName = dyDDepartment.aName;
		this.bName = dyDDepartment.bName;
		this.cName = dyDDepartment.cName;
	}
	
	@Override
	public boolean hasSubDepartment() {return true;}


	@Override
	public boolean isSubDepartmentInThis(AbstractDepartment department)
	{
		DyDDepartment dyDDepartment =(DyDDepartment)department;
		return aName.equals(dyDDepartment.aName) && bName.equals(dyDDepartment.bName)
				&& cName.equals(dyDDepartment.cName);
	}

	@Override
	public String departmentName()
	{
		return aName + bName + cName;
	}
}
